package com.john.permission.service;

import com.john.permission.pojo.LayUITreePOJO;
import com.john.permission.pojo.Permission;
import com.john.permission.pojo.Role;

import java.util.List;

public interface PermissionService {


    List<Permission> getAllPermissions();

    List<Permission> getUserPermission(List<Role> roles);


    List<Permission> buildPermissionTree(List<Permission> permissionList);

    List<LayUITreePOJO> convertPermissionTree2LayUITree(List<Permission> permissionTree, List<Permission> userPermission);
}
